package xcmg.device.dao.mapper.buyBack;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.buyBack.BackInboundDO;
import xcmg.device.service.vo.buyBack.BackInboundVO;

import java.util.List;

@Mapper
public interface BackInboundMapper {

    List<BackInboundDO> list(BackInboundVO inboundVO);

    int deleteByPrimaryKey(String id);

    int insert(BackInboundDO record);

    BackInboundDO selectByPrimaryKey(String id);

    List<BackInboundDO> findByIds(@Param("ids") List<String> ids);

    int update(BackInboundDO record);

    int listCount(BackInboundVO inboundVO);

    List<BackInboundDO> findForDeleteByIds(@Param("ids") List<String> ids);

    List<String> findOrderList(@Param("ids") List<String> ids);

    List<BackInboundDO> findBackOrderList(@Param("ids") List<String> ids);

    int remove(@Param("ids") List<String> ids);

    BackInboundDO findByInboundOrder(@Param("inboundOrder") String inboundOrder, @Param("orgId") String orgId);

    int updateStatus(@Param("inboundOrder") String inboundOrder, @Param("status") Integer status, @Param("orgId") String orgId);
}